.class Lrexsee/core/browser/clazz/FileSelector$1;
.super Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;
.source "FileSelector.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/browser/clazz/FileSelector;->selectByDefault(Ljava/lang/String;Lrexsee/core/browser/clazz/FileSelector$FileSelecteListener;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/core/browser/clazz/FileSelector;

.field private final synthetic val$listener:Lrexsee/core/browser/clazz/FileSelector$FileSelecteListener;


# direct methods
.method constructor <init>(Lrexsee/core/browser/clazz/FileSelector;Lrexsee/core/browser/clazz/FileSelector$FileSelecteListener;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/browser/clazz/FileSelector$1;->this$0:Lrexsee/core/browser/clazz/FileSelector;

    iput-object p2, p0, Lrexsee/core/browser/clazz/FileSelector$1;->val$listener:Lrexsee/core/browser/clazz/FileSelector$FileSelecteListener;

    .line 66
    invoke-direct {p0}, Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;-><init>()V

    return-void
.end method


# virtual methods
.method public run(ILandroid/content/Intent;)V
    .locals 5
    .param p1, "resultCode"    # I
    .param p2, "resultIntent"    # Landroid/content/Intent;

    .prologue
    const/4 v4, 0x0

    .line 70
    const/4 v1, -0x1

    if-ne p1, v1, :cond_0

    .line 71
    :try_start_0
    iget-object v1, p0, Lrexsee/core/browser/clazz/FileSelector$1;->val$listener:Lrexsee/core/browser/clazz/FileSelector$FileSelecteListener;

    iget-object v2, p0, Lrexsee/core/browser/clazz/FileSelector$1;->this$0:Lrexsee/core/browser/clazz/FileSelector;

    invoke-virtual {p2}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v3

    # invokes: Lrexsee/core/browser/clazz/FileSelector;->getPath(Landroid/net/Uri;)Ljava/lang/String;
    invoke-static {v2, v3}, Lrexsee/core/browser/clazz/FileSelector;->access$0(Lrexsee/core/browser/clazz/FileSelector;Landroid/net/Uri;)Ljava/lang/String;

    move-result-object v2

    const-string v3, ""

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/clazz/FileSelector$FileSelecteListener;->run(Ljava/lang/String;Ljava/lang/String;)V

    .line 78
    :goto_0
    return-void

    .line 73
    :cond_0
    iget-object v1, p0, Lrexsee/core/browser/clazz/FileSelector$1;->val$listener:Lrexsee/core/browser/clazz/FileSelector$FileSelecteListener;

    const/4 v2, 0x0

    const-string v3, "User canceled."

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/clazz/FileSelector$FileSelecteListener;->run(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 75
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 76
    .local v0, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/core/browser/clazz/FileSelector$1;->val$listener:Lrexsee/core/browser/clazz/FileSelector$FileSelecteListener;

    invoke-virtual {v0}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v4, v2}, Lrexsee/core/browser/clazz/FileSelector$FileSelecteListener;->run(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method
